package org.anyin.gitee.cloud.center.websocket.config;

import lombok.extern.slf4j.Slf4j;
import org.anyin.gitee.cloud.lib.core.config.DefaultApiHandler;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Aspect
@Order
@Slf4j
@Component
public class ApiHandler extends DefaultApiHandler {

    @Override
    @Around("execution(public * org.anyin.gitee.cloud.center.base.controller..*Controller.*(..))")
    public Object invokeAPI(ProceedingJoinPoint pjp) throws Throwable {
        return super.handle(pjp);
    }
}
